<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>
	<script>
		let person1 = {
			name: 'Amy',
			age: 15
		};
		let someOne = {...person1};
		console.log(someOne);

		let person2 = {
			gender: '女'
		}
		let person3 = {...person1, ...person2};
		console.log(person3);

		let person = {
			name: 'jack',
			age: 21,
			language: ['java', 'js', 'css']
		}
		console.log(Object.keys(person));
		console.log(Object.values(person));
		console.log(Object.entries(person));

		let target = {name: 'zhangsan'};
		let source1 = {age: 23};
		let source2 = {gender: '男'};
		Object.assign(target, source1, source2);
		console.log(target);
	</script>
</body>
</html>